<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     <h1>我是其他页面</h1>
</body>
</html>
<script>
     //获取本地存储的数据
     let result = localStorage.getItem('ERHA');
     //修改H1文本
     document.querySelector('h1').innerHTML = result;
</script>